package com.example.pojo;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 用户表
 * </p>
 *
 * @author fzy'
 * @since 2024-08-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("user")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 头像url
     */
    private String img;

    /**
     * 昵称
     */
    private String nickname;

    /**
     * 用户真实姓名
     */
    private String name;
    /**
     * 用户密码
     */
    private String password;

    /**
     * 身份证号
     */
    private String idCard;

    /**
     * 用户角色  0:管理员 1:农户 2:商户
     */
    private Integer role;

    /**
     * 用户状态 0:正常 1:禁用
     */
    private Boolean status;

    private String phoneNum;

    private LocalDateTime createTime;

    private LocalDateTime updateTime;

    private Integer createUser;

    private Integer updateUser;

    private Integer isDeleted;


}
